﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class vIncidentesReportes : System.Web.UI.Page
{
    ManejoIncidentes _mi;
    protected void Page_Load(object sender, EventArgs e)
    {
        _mi = new ManejoIncidentes();
    }
    protected void calInsidente_SelectionChanged(object sender, EventArgs e)
    {
        gvIncidentes.DataSource = _mi.SelIncidentes(string.Format("{0}-{1}-{2}",calInsidente.SelectedDate.Year.ToString(),calInsidente.SelectedDate.Month.ToString(),calInsidente.SelectedDate.Day.ToString()));
        gvIncidentes.DataBind();
    }
}